<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>用户管理</title>
<link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/static/css/zico.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container-xl">
 <h1>用户输入</h1>


    <form action="/input", method="post">
        {% csrf_token %}    <!--django有跨站保护机制要求必须添加此行-->
        用户名：<input type="text"  name="username" /><br/>
        密码：<input type="password" name="password" /><br/>
        <input type="submit" value="提交">
    </form>

    <hr>
    <h1>用户展示：</h1>
       <table  class="table-bordered">
            <thead>
                <tr>用户名</tr>
                <tr>密码</tr>
            </thead>
            <tbody>
                {% for item in data %}
                <tr>
                    <td>{{ item.user }}</td>
                    <td>{{ item.pwd }}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>

</div>
</body>
</html>